package com.dt76.smallloanbackenduser.remote.lhuaw;

import com.dt76.smallloanbackenduser.hystrix.lhuaw.appcationHystrix;
import com.dt76.smallloanbackenduser.pojo.lhuaw.Application;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = appcationHystrix.class)
public interface Applicationtest {
    //系统消息
    @RequestMapping("/lhuaw/qryAllApplication")
    List<Application> qryAllApplication();
    @RequestMapping("/lhuaw/getApplicationAll")
    public Page getApplicationAll(
            @RequestParam("pageIndex") int pageIndex);
    //删除
    @RequestMapping("/lhuaw/deleteStation")
    public Result deleteStation(@RequestParam("numId") int numId);

//系统消息

}
